package com.sgai.zero_robot.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    private static SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd日HH时mm分ss秒.SSS");

    public static String longToDate(long time){
        // 创建一个Date对象
        Date date = new Date(time);
        String formattedDate = sdf2.format(date);
        return formattedDate;
    }
}
